﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true" CodeBehind="EditTicket.aspx.cs" Inherits="doris.Ticketuser.EditTicket" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type = "text/css">
.form
{
    float:left;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <fieldset>
   <div> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
   <div class = "form">  
    <p> <asp:Label ID="Label2" runat="server" Text="Title" Font-Bold="True" Width="100px"></asp:Label>
       <asp:TextBox ID="TextBox1" runat="server" Width="355px"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="OkButton" runat="server" Text="Edit" Width="60px" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    
        <asp:Button ID="cancelButton" runat="server" Text="Cancel" />
    </p>
    </div>
    </fieldset>
    <br />
    <div>
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" 
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" Font-Size="Smaller" ForeColor="Black" GridLines="Vertical">
            <AlternatingRowStyle BackColor="White" />
             
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:localConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:localConnectionString.ProviderName %>" 
            SelectCommand="SELECT TicketID, TicketStatusID, Title, CreatedDate, PendingDate,Locked FROM ticket WHERE (TicketID = @ticketID)">
            <SelectParameters>
                <asp:SessionParameter DefaultValue="0" Name="TicketID" SessionField="ticketID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
    </asp:Content>
